package com.iwhalecloud.uncc.domain;

/**
 * @author zq
 * @date 2021/10/15 10:27
 * @description ArchiveParam 线程传递的上下文核心对象
 */
public class ArchiveParam {
    /**
     * 归档对象
     */
    private String target;
    /**
     * 一次归档条数
     */
    private int number;

    private int eachInsLines;
    /**
     * 归档起始时间
     */
    private String startDate;
    /**
     * 归档结束时间
     */
    private String endDate;
    /**
     * 定时归档Cron
     */
    private String cron;
    /**
     * 是否删除在线库
     */
    private boolean isDeleteOnline;

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getEachInsLines() {
        return eachInsLines;
    }

    public void setEachInsLines(int eachInsLines) {
        this.eachInsLines = eachInsLines;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public boolean getIsDeleteOnline() {
        return isDeleteOnline;
    }

    public void setIsDeleteOnline(boolean isDeleteOnline) {
        this.isDeleteOnline = isDeleteOnline;
    }

    @Override
    public String toString() {
        return "Archiver{" +
                "target='" + target + '\'' +
                ", number='" + number + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", cron='" + cron + '\'' +
                ", isDeleteOnline=" + isDeleteOnline +
                '}';
    }
}
